package com.wanmei.mapper;

import com.wanmei.pojo.Product;
import com.wanmei.pojo.ProductStoreNum;
import com.wanmei.pojo.Productkuid;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductkuidMapper {

    int insert(Productkuid record);

    List<Productkuid> selectProductKuidByPid(Integer pid);

    List<ProductStoreNum> getProductStoreByPidAndVid(int pid);

    Integer getStoreNumByPidAndVid(@Param("pid") int pid, @Param("vid") int vid);


    Productkuid getAllByPidAndVid(@Param("pid") int pid, @Param("vid") int vid);

    List<Object> selectAll();

    int deleteByPid(Integer pid);

    int insertSelective(Productkuid record);

    int updateByPidAndVid(@Param("record")Productkuid record);

    int updateStockByPid(Productkuid productkuid);

    int updateByExampleSelective(@Param("record") Productkuid record);

    int updateByExample(@Param("record") Productkuid record);

    Product selectByKuid(int kuid);

    Productkuid getByPrimaryKey(int kuid);
}